package org.simtube.util;

public class TermDF {
	private String term; //词项
	private int df;  //词项的DF(包含该词项的文档数)
	
	public TermDF(String term){
		this.term = term;
		this.df = 1;
	}
	public TermDF(String term, int df){
		this.term = term;
		this.df = df;
	}
	public void setDF(int df){
		this.df = df;
	}
	public int getDF(){
		return df;
	}
	public void incrementDF(){
		this.df++;
	}
	public String getTerm(){
		return this.term;
	}
}
